<include file="Public:header"/>

<script type="text/javascript">

$(document).ready(function(){



	
});

function share_add_checks(){
	if(!$("#pic").val()){
		alert("请上传图片");return false;
	}else if(!$("#message").val()){
		alert("请填写简介说明");return false;
	}
}

</script>

<div>
       <!-- 右侧新增发表分享begin -->
	<div id="form_content">
	  <form method="post" action="__APP__/Home/Share/adds" onsubmit="return share_add_checks();" enctype="multipart/form-data">
		<ul class="form_ul">
			<input type="hidden" id="is_newsp" name="is_newsp" value="0">
          	<li class="choose_sp">
          	<li class="choose_sp">
	          	品类：<span id="sp_category">{$commodity.category_name}</span><br>
	          	品牌：<span id="sp_brand">{$commodity.brand_name}</span><br>
	          	品名：<span id="sp_commodity">{$commodity.name}</span><br>
	          	<input id="hi_category" name="category_id" value="{$commodity.category_id}" type="hidden">
	          	<input id="hi_brand" name="brand_id" value="{$commodity.brand_id}" type="hidden">
	          	<input id="hi_commodity" name="commodity_id" value="{$commodity.id}" type="hidden">
          	</li>
          	</li>
          	<input type="hidden" id="content_type" name="content_type" value="1">
          	<li class="pic_content">上传图片：<input type="file" id="pic" name="pic" value="" /></li>
          	<li class="pic_content"><span>图片说明：</span><textarea id="message" name="message" style="width:300px; height:100px;"></textarea></li>
          	<li class="pic_content">　　　　<input type="submit" class="button" name="" value="确认提交"></li>
		</ul>
	  </form>
	</div>
       <!-- 右侧新增发表分享end -->
</div>